package com.wtwd.campus.h5_manager.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author mjy
 * @since 2021-07-05
 */
public class H5DeviceSetting implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "device_id", type = IdType.AUTO)
    private Integer deviceId;

    /**
     * ip地址
     */
    private String ipAddress;

    /**
     * 端口号
     */
    private Integer port;

    /**
     * 音量 2：大    1：中  0：小
     */
    private Integer speakLevel;

    /**
     * 重连次数
     */
    private long reconnectTime;

    /**
     * 睡眠模式开关
     */
    private Integer sleepSwitch;

    /**
     * 睡眠模式开始时间
     */
    private String sleepStart;

    /**
     * 睡眠模式结束时间
     */
    private String sleepEnd;

    /**
     * 设备imei
     */
    private String imei;

    /**
     * 设备监听号码
     */
    private String monitorNum;

    /**
     * 监听是否设置成功  1：监听成功 0:监听失败
     */
    private Integer monitorFlag;

    private Integer silentShutdown;

    public Integer getSilentShutdown() {
        return silentShutdown;
    }

    public void setSilentShutdown(Integer silentShutdown) {
        this.silentShutdown = silentShutdown;
    }

    public Integer getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Integer deviceId) {
        this.deviceId = deviceId;
    }

    public String getIpAddress() {
        return ipAddress;
    }

    public void setIpAddress(String ipAddress) {
        this.ipAddress = ipAddress;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public Integer getSpeakLevel() {
        return speakLevel;
    }

    public void setSpeakLevel(Integer speakLevel) {
        this.speakLevel = speakLevel;
    }


    public long getReconnectTime() {
        return reconnectTime;
    }

    public void setReconnectTime(long reconnectTime) {
        this.reconnectTime = reconnectTime;
    }

    public Integer getSleepSwitch() {
        return sleepSwitch;
    }

    public void setSleepSwitch(Integer sleepSwitch) {
        this.sleepSwitch = sleepSwitch;
    }

    public String getSleepStart() {
        return sleepStart;
    }

    public void setSleepStart(String sleepStart) {
        this.sleepStart = sleepStart;
    }

    public String getSleepEnd() {
        return sleepEnd;
    }

    public void setSleepEnd(String sleepEnd) {
        this.sleepEnd = sleepEnd;
    }

    public String getImei() {
        return imei;
    }

    public void setImei(String imei) {
        this.imei = imei;
    }

    public String getMonitorNum() {
        return monitorNum;
    }

    public void setMonitorNum(String monitorNum) {
        this.monitorNum = monitorNum;
    }

    public Integer getMonitorFlag() {
        return monitorFlag;
    }

    public void setMonitorFlag(Integer monitorFlag) {
        this.monitorFlag = monitorFlag;
    }

    @Override
    public String toString() {
        return "DeviceSetting{" +
                "deviceId=" + deviceId +
                ", ipAddress='" + ipAddress + '\'' +
                ", port=" + port +
                ", speakLevel=" + speakLevel +
                ", reconnectTime=" + reconnectTime +
                ", sleepSwitch=" + sleepSwitch +
                ", sleepStart='" + sleepStart + '\'' +
                ", sleepEnd='" + sleepEnd + '\'' +
                ", imei='" + imei + '\'' +
                ", monitorNum='" + monitorNum + '\'' +
                ", monitorFlag=" + monitorFlag +
                ", silentShutdown=" + silentShutdown +
                '}';
    }
}
